
<!-- user account info -->
<div class = 'well'>
<h3>
<i class = "icon-user"></i>
<?php $emial_add = $user['email']?>
<?php echo $user['uname']?><small>(<a href = "mailto:<?php echo $emial_add?>">
	<small><?php echo $emial_add?></small></a>)</small>
</h3>
<hr style = 'margin:5px;'/>
<i>Registered <?php echo $this->datelib->format_date($user['registerdate']);?></i>
</div>
<!-- user account info end -->


<!-- user blog info -->

<div class = 'well'>
<?php $num_blogs_own = count($blogs['own']);?>
<?php $num_blogs_manage = count($blogs['manage']);?>
<h4>Blogs</h4>
<div>
<a href = "#" onclick = "$('#own_blog_area').toggle('fast');"><span>Own <?php echo $num_blogs_own?> blogs</span></a>
<div class = "hide org_box" id = "own_blog_area">
	<span class="org_bot_cor" style = "left:25px;"></span>
	<?php foreach ($blogs['own'] as $blog):?>
		<i class = "icon-list-alt"></i>
		<a href = '/MyMicroBlog/index.php/blog/index/<?php echo $blog['bid']?>'><?php echo $blog['bname']?></a> 
	<?php endforeach;?>
	
</div>
</div>
<div>
<a href = "#" onclick = "$('#manage_blog_area').toggle('fast');"><span>Manage <?php echo $num_blogs_manage?> blogs</span></a>
<div class = "hide org_box" id = "manage_blog_area">
	<span class="org_bot_cor" style = "left:49px;"></span>
	<?php foreach ($blogs['manage'] as $blog):?>
		<i class = "icon-list-alt"></i>
		<a href = '/MyMicroBlog/index.php/blog/index/<?php echo $blog['bid']?>'><?php echo $blog['bname']?></a>
	<?php endforeach;?>
</div>
</div>
</div>


<!-- user blog info end -->